home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / dtype / multipri.lha / MultiPrint / Source / MultiPrint.h < prev    next >
C/C++ Source or Header  |  1995-08-07  |  2KB  |  91 lines

  1. /*
  2. ** $PROJECT: MultiPrint - print datatype objects
  3. **
  4. ** $VER: MultiPrint.h 39.0 (07.08.95)
  5. **
  6. ** by
  7. **
  8. ** Stefan Ruppert , Windthorststrasse 5 , 65439 Floersheim , GERMANY
  9. **
  10. ** (C) Copyright 1995
  11. ** All Rights Reserved !
  12. **
  13. ** $HISTORY:
  14. **
  15. ** 07.08.95 : 039.000 : initial
  16. */
  17.  
  18. /* ------------------------------- includes ------------------------------- */
  19.  
  20. #include "system.h"
  21.  
  22. /* ----------------------------- definitions ------------------------------ */
  23.  
  24. #define CATCOMP_NUMBERS
  25. #include "MultiPrint_Texts.h"
  26.  
  27. #ifdef __SASC
  28. #define GetA4     __saveds
  29. #endif
  30.  
  31. #define BUFFER_SIZE     256
  32.  
  33. #define TEMPLATE        "FILES/M/A,QUIET/S"
  34.  
  35. struct TemplateData
  36. {
  37.     STRPTR *td_Files;
  38.     ULONG td_Quiet;
  39. };
  40.  
  41. /* -------------------------- globaldata section -------------------------- */
  42.  
  43. struct GlobalData
  44. {
  45.     struct Library *gd_SysBase;
  46.     struct Library *gd_DOSBase;
  47.     struct Library *gd_IntuitionBase;
  48.     struct Library *gd_UtilityBase;
  49.     struct Library *gd_DataTypesBase;
  50.     struct Library *gd_IconBase;
  51.     struct Library *gd_LocaleBase;
  52.  
  53.     struct Catalog *gd_Catalog;
  54.     APTR gd_Pool;
  55.  
  56.     /* started from workbench ? */
  57.     LONG gd_Workbench;
  58.  
  59.     /* commandline parameter */
  60.     struct TemplateData gd_Para;
  61.  
  62.     /* object, which caused a error */
  63.     STRPTR gd_ErrorObject;
  64.  
  65.     /* printer stuff */
  66.     struct MsgPort *gd_PrintPort;
  67.     union printerIO *gd_PrintIO;
  68.  
  69.     /* datatype print method structure */
  70.     struct dtPrint gd_PrintMsg;
  71.  
  72.     UBYTE gd_Buffer[BUFFER_SIZE];
  73.  
  74.     /* we have to emulate a GadgetInfo structure */
  75.     struct GadgetInfo gd_GInfo;
  76. };
  77.  
  78. #define IntuitionBase gd->gd_IntuitionBase
  79. #define UtilityBase   gd->gd_UtilityBase
  80. #define DataTypesBase gd->gd_DataTypesBase
  81. #define IconBase      gd->gd_IconBase
  82. #define LocaleBase    gd->gd_LocaleBase
  83. #define DOSBase       gd->gd_DOSBase
  84. #define SysBase       gd->gd_SysBase
  85.  
  86. /* ------------------------------ prototypes ------------------------------ */
  87.  
  88. extern struct GlobalData *Init(void);
  89. extern void Free(struct GlobalData *gd);
  90.  
  91.